class Entity(object):
    def __init__(self, id):
        self.id = id
        self.components = {}

    def GetID(self):
        return self.id

    def AddComponent(self, type, component):
        self.components[type] = component

    def GetComponent(self, type):
        return self.components[type]
